package com.cskaoyan.market.service;

import com.cskaoyan.market.db.admin.bo.creategoods.AdminGoodsDeleteBo;
import com.cskaoyan.market.db.admin.vo.BaseAdminGoodsInfoVo;
import com.cskaoyan.market.db.common.BasePageInfo;
import com.cskaoyan.market.db.common.CommonData;
import com.cskaoyan.market.db.domain.MarketGoods;
import com.cskaoyan.market.db.domain.MarketGoodsAttribute;
import com.cskaoyan.market.db.domain.MarketGoodsProduct;
import com.cskaoyan.market.db.domain.MarketGoodsSpecification;

import java.util.Map;

public interface AdminGoodsService {

	CommonData<MarketGoods> list(BasePageInfo basePageInfo, String goodsId, String goodsSn, String name);

	int addGoods(MarketGoods goods, MarketGoodsSpecification[] specifications, MarketGoodsProduct[] products, MarketGoodsAttribute[] attributes);

	Map<String, Object> catAndBrand();

	BaseAdminGoodsInfoVo detail(Integer id);

	int updateGoods(MarketGoods goods, MarketGoodsSpecification[] specifications, MarketGoodsProduct[] products, MarketGoodsAttribute[] attributes, Integer[] categoryIds);

	int delete(AdminGoodsDeleteBo goods);
}
